import xlrd

data = xlrd.open_workbook('成绩5.1.xls')
table = data.sheet_by_name('成绩5.1')

name = 2
Class = 1

shuxue = 3
jisuan = 4
huaxue = 5
zhiwu = 6
zhuanye = 7
sixiu = 8
tiyu = 9
yingyu = 10
yuwen = 11
gpa = 12
money = 13

l = 42

def getCell(x,y):
    result=table.cell(x, y).value
    if y>2:
        return float(result)
    else:
        return result